package cn.edu.pku.ss.situationperceiver;

import java.util.Date;

import org.alljoyn.bus.annotation.Position;
import org.alljoyn.bus.annotation.Signature;

public class ContextData {
	/**
	 * This class contains the real context without any meta-data.
	 *
	 */
	/*
	 * Define context types here in the enum.
	 * */

	public static enum ContextType {
		@Position(0)
		FLOOR_WEIGHT,
		
		@Position(1)
		HAS_COFFEE_CUP,
		
		@Position(2)
		COFFEE_TEMPERATURE,
		
		@Position(3)
		IS_MEMBER,
		
		@Position(4)
		NUMBER_OF_PEOPLE_IN_ROOM,
		
		@Position(5)
		ROOM_TEMPERATURE,
		
		@Position(6)
		ROOM_LIGHT,
		
		@Position(7)
		SOUND_METER,
		
		@Position(8)
		PROJECTOR,
		
		@Position(9)
		LOCATION,
		
		@Position(10)
		DIARY,
		
		@Position(11)
		PEOPLE_IN_ROOM,
		
		@Position(12)
		NONE
	}
	
	@Position(0)
	public String 	contextType;
	
	@Position(1)
	public String 	truthValue;
	
	@Position(2)
	public String 	genDate;	//records the generated date of this context object 
	
	@Position(3)
	public String	expireDate;	//records the expire date of this context object
	

	
	public ContextData(String contextType, String truthValue,
			String genDate, String expireDate) {
		super();
		this.contextType = contextType;
		this.truthValue = truthValue;
		this.genDate = genDate;
		this.expireDate = expireDate;
	}
	
	public String getContextType() {
		return contextType;
	}
	public void setContextType(String contextType) {
		this.contextType = contextType;
	}
	public String getTruthValue() {
		return truthValue;
	}
	public void setTruthValue(String truthValue) {
		this.truthValue = truthValue;
	}

	public String getGenDate() {
		return genDate;
	}

	public void setGenDate(String genDate) {
		this.genDate = genDate;
	}

	public String getExpireDate() {
		return expireDate;
	}

	public void setExpireDate(String expireDate) {
		this.expireDate = expireDate;
	}
	
}
